package com.dyna.patterns.creation.factory.abstractmethod;

public class MainDemo {

    public static void main(String[] args) {

        MiniCarFactory miniCarFactory = new MiniCarFactory();
        AbstractCar abstractCar = miniCarFactory.newCar();
        abstractCar.run();

        VanCarFactory vanCarFactory = new VanCarFactory();
        AbstractCar car = vanCarFactory.newCar();
        car.run();

    }

}
